package stool.compositepattern;

import static stool.compositepattern.StringUtils.formatStr;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/11
 */
public class HRDepartment extends Company{

    public HRDepartment(String name) {
        super(name);
    }

    @Override
    public void create(Company company) {

    }

    @Override
    public void find(int depth) {
        System.out.println(formatStr("-", depth)+ super.getName());
    }

    @Override
    public void delete(Company company) {

    }

    @Override
    public void lineOfDuty() {
        System.out.println(super.getName() + "HR");
    }
}
